package cn.gson.boot.model.dao;

import cn.gson.boot.model.pojos.User;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

public interface UserDao extends CrudRepository<User,Integer> {
    //根据员工姓名查询对象
    @Query(nativeQuery = true, value = "select * from user_ where emp_name =?1")
    public User UserInfo(String name);



}
